﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using NRCP.BusinessLogicLayer;
using NRCP.App_Service;

namespace NRCP
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                LoadData();
            }
        }

        private void LoadData()
        {
            FarmBLL farmbll = new FarmBLL();
            litFarms.Text = farmbll.GetFarmsAllCount().ToString();

            SubDistrictBLL subdisBll = new SubDistrictBLL();
            litUpazila.Text = subdisBll.GetSubDistrictAllCount().ToString();

            NationalPlanBLL planbll = new NationalPlanBLL();
            litPlans.Text=planbll.GetNationalPlanAllCount().ToString();

            NationalPlanDetailsYearlyBLL samplebll = new NationalPlanDetailsYearlyBLL();
            litSamples.Text = samplebll.GetSampleAllCount().ToString();

            litNonComplience.Text = "0";
            
        }
    }
}